#!/usr/bin/env bash

pid=`ps -ef | grep spring-boot-maven-plugin.jar | grep -v grep | awk '{print $z}'`
if[[ -z "${pid}"]]
then
  echo application is already stopped
else
  echo kill ${pid}
  kill -9 ${pid}
fi